//
//  MPTNoGuanZhuVIew.m
//  MPTLive
//
//  Created by HouGeng on 16/2/26.
//  Copyright © 2016年 Jeakin. All rights reserved.
//

#import "MPTNoGuanZhuVIew.h"

@implementation MPTNoGuanZhuVIew

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        UIImage *image1 = [UIImage imageNamed:@"noguanzN"];
        TPButton *but = [TPButton getWithFrame:CGRectMake((screenW- image1.size.width) / 2, (screenW- image1.size.width) / 2 + 40, image1.size.width, image1.size.height) target:self action:@selector(buttonClicked)];
        [but setImage:image1 forState:UIControlStateNormal];
        [but setImage:[UIImage imageNamed:@"noguanzS"] forState:UIControlStateHighlighted];
        but.center = self.center;
        [self addSubview:but];
    }
    
    return self;
}


- (void)buttonClicked
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"gundongdaoHot" object:nil];
}
@end
